export function waitClick(idName) {
    var el = id(idName)untilFind();
    el.click();
}

export function waitDisapper(idName) {
    if (!id(idName).exists()) return;
    const nExists = function(cb) {
        if (!id(idName).exists()) {
            return cb();
        }
        setImmediate(() => {
            nExists(cb);
        });
    }
    return new Promise((resolve, reject) => {
        nExists(resolve);
    });
}